package com.sparrow.bean;

import io.netty.channel.Channel;
import io.netty.channel.ChannelId;

/**
 * Created by wancheng on 2019/4/13.
 */
public class Member {

    private Integer roomId;

    private ChannelId channelId;

    private Role role;

    private String name;

    private String account;

    public Member() {
    }

    public Member(Integer roomId, ChannelId channelId, Role role) {
        this.roomId = roomId;
        this.channelId = channelId;
        this.role = role;
    }

    public Member(Integer roomId, ChannelId channelId, Role role, String name, String account) {
        this.roomId = roomId;
        this.channelId = channelId;
        this.role = role;
        this.name = name;
        this.account = account;
    }

    public ChannelId getChannelId() {
        return channelId;
    }

    public void setChannelId(ChannelId channelId) {
        this.channelId = channelId;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }
}
